<?php slot('login') ?>
<?php use_stylesheet("/project_css_js/komentaarid.css") ?>
<?php use_javascript("/project_css_js/js/tofsla_forms.js")?>

<div class="pealkiri">
	<p class="mis"><?php echo $node['pageTitle'] ?></p>
</div>
<div class="tagasisidebox">
	<h1><?php echo __('registreeritud kasutajatele') ?></h1>
	<p><?php echo __('parooli uuendamiseks sisesta email') ?></p>
	<p id="login_errors">
		<span style="color:red">
		<?php foreach($form->getErrorSchema() as $index => $val): ?>
			<?php echo $val ?>
		<?php endforeach; ?>
		</span>
		<span style="color:green">
		<?php echo $sf_user->getFlash('passwordReminder') ?>
		</span>
	</p>
	<div class="parooliconteiner">
		<form method="post" action="<?php echo LinkGen::getInstance(LinkGen::STRUCTURE_ACTIONS)->link(null, array('passwordRemind' => 1)) ?>">
			<?php echo $form->renderHiddenFields(true) ?>
			<div class="forms">
				<?php echo $form['email']->render(array('class' => 'sideinput'))?>
			</div>

			<div class="clear"></div>
			<div class="sabutton">
				<div class="sabuttonleft"><img src="/project_css_js/img/sbuttonleft.png" width="8" height="20" alt=""/></div>
				<div class="sabuttoncenter"><p><a id="signin_button" href="#"><?php echo __('uuenda parool') ?></a></div>
				<div class="sabuttonright"><img src="/project_css_js/img/sbuttonright.png" width="8" height="20" alt=""/></div>
			</div>
			<div class="clear"></div>
		</form>
	</div>
</div>
<script type="text/javascript">
  $('#signin_button').click(function(e) {
	e.preventDefault();

	var form = $(this).parents('form');
	form.submit();

    return false;
  });
</script>
<?php end_slot() ?>